package ar.com.tristeslos3tigres.rssfeedreader.feedsconfiguration;

import ar.com.tristeslos3tigres.rssfeedreader.dateparsers.BlogspotUdtDateParser;
import ar.com.tristeslos3tigres.rssfeedreader.dateparsers.DateParser;

public class BlogspotConfiguration implements FeedConfiguration {

	DateParser dateParser;

	public BlogspotConfiguration() {
		this(new BlogspotUdtDateParser());
	}

	public BlogspotConfiguration(DateParser dateParser) {
		super();
		this.dateParser = dateParser;
	}

	@Override
	public String getElementKey() {
		return "entry";
	}

	@Override
	public String getIdKey() {
		return "id";
	}

	@Override
	public String getPublishedKey() {
		return "published";
	}

	@Override
	public String getUpdateKey() {
		return "updated";
	}

	@Override
	public String getCategoryKey() {
		return "category";
	}

	@Override
	public String getTitleKey() {
		return "title";
	}

	@Override
	public String getContentKey() {
		return "content";
	}

	@Override
	public String getLinkKey() {
		return "link";
	}

	@Override
	public String getCategoryTermKey() {
		return "term";
	}

	@Override
	public String getTypeAttributeKey() {
		return "type";
	}

	@Override
	public String getRelAttributeKey() {
		return "rel";
	}

	public DateParser getDateParser() {
		return dateParser;
	}
}